package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 点赞管理对象 tour_like
 *
 * @author once
 * @date 2020-10-02
 */
public class TourLike extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点赞ID */
    private Long likeId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 点赞的记录的ID */
    @Excel(name = "点赞的记录的ID")
    private Long likedId;

    /** 点赞类别（视频、游记、问题、景点等） */
    @Excel(name = "点赞类别", readConverterExp = "视=频、游记、问题、景点等")
    private String likeType;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private String isDelete;

    public void setLikeId(Long likeId)
    {
        this.likeId = likeId;
    }

    public Long getLikeId()
    {
        return likeId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setLikedId(Long likedId)
    {
        this.likedId = likedId;
    }

    public Long getLikedId()
    {
        return likedId;
    }
    public void setLikeType(String likeType)
    {
        this.likeType = likeType;
    }

    public String getLikeType()
    {
        return likeType;
    }
    public void setIsDelete(String isDelete)
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete()
    {
        return isDelete;
    }
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    public void setCreatetime(Date checkTime) {
        this.createtime = checkTime;
    }



    public Date getCreatetime() {
        return createtime;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("likeId", getLikeId())
            .append("userId", getUserId())
            .append("likedId", getLikedId())
            .append("likeType", getLikeType())
            .append("isDelete", getIsDelete())
            .append("createtime", getCreatetime())
            .toString();
    }
}
